<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title></title>
</head>

<body>
	<script>
		let password = prompt("输入密码:")
		let mima = 123456
		if (password == mima) {
			alert("密码正确")
		}
		else {
			alert("密码错误，请重新输入")
			password = prompt("输入密码:")
		}
	</script>
</body>

</html>